<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%> <%@include
file="/WEB-INF/jsp/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<jsp:include page="/WEB-INF/jsp/common/style.jsp"></jsp:include>
</head>
<body>

	<div class="easyui-panel" title="&nbsp;" style="width: 500px">
		<div style="padding: 10px 60px 20px 60px">
			<form id="${classKey}Form" method="post">
				<input type="hidden" id="${primaryKey}" name="${primaryKey}">
				<table cellpadding="5">
					<#list noCommonFieldList as field> <#if field.priKey?c ='false'>
					<tr>
						<td align="right">${field.comment}:</td> <#if
						field.nullable?c='true'> <#if field.type='Long' ||
						field.type='Integer'>
						<td><input class="easyui-validatebox textbox" type="text"
							id="${field.name}" name="${field.name}"
							data-options="validType:['digit']"></input></td> <#elseif
						field.type='Double'>
						<td><input class="easyui-validatebox textbox" type="text"
							id="${field.name}" name="${field.name}"
							data-options="validType:['number']"></input></td> <#elseif
						field.type='String'>
						<td><input class="easyui-validatebox textbox" type="text"
							id="${field.name}" name="${field.name}"
							data-options="validType:['maxLength[${field.length}]']"></input></td>
						<#elseif field.type='Date'>
						<td><input class="easyui-validatebox textbox" type="text"
							id="${field.name}" name="${field.name}"></input></td> </#if> </#if>
						<#if field.nullable?c='false'> <#if field.type='Long' ||
						field.type='Integer'>
						<td><input class="easyui-validatebox textbox" type="text"
							id="${field.name}" name="${field.name}"
							data-options="required:true,validType:['digit']"></input></td>
						<#elseif field.type='Double'>
						<td><input class="easyui-validatebox textbox" type="text"
							id="${field.name}" name="${field.name}"
							data-options="required:true,validType:['number']"></input></td>
						<#elseif field.type='String'>
						<td><input class="easyui-validatebox textbox" type="text"
							id="${field.name}" name="${field.name}"
							data-options="required:true,validType:['maxLength[${field.length}]']"></input></td>
						<#elseif field.type='Date'>
						<td><input class="easyui-validatebox textbox" type="text"
							id="${field.name}" name="${field.name}"
							data-options="required:true"></input></td> </#if> </#if>
					</tr>
					</#if> </#list>

				</table>
			</form>
			<div style="text-align: center; padding: 5px">
				<a href="javascript:void(0)" id="submitForm"
					class="easyui-linkbutton" onclick="submitForm_edit();">提交</a>
			</div>
		</div>
	</div>

	<script type="text/javascript"
		src="${propertyPrefix}resRoot${propertyPostfix}/js/${key}/${classKey}Edit.js"></script>
	<script>
		$(document).ready(function(){
			<c:if test="${propertyPrefix}!empty ${primaryKey}${propertyPostfix}">
				var ${primaryKey}='${propertyPrefix}${primaryKey}${propertyPostfix}';
				$.formLoad('${classKey}Form',contextPath+'${urlPrefix}/get${UpperKey}ById.json?${primaryKey}='+${primaryKey},function(data){
					
				});
			</c:if>
		});
	</script>
</body>
</html>